# -*- coding:utf-8 -*-
# 分析数据

import QueryData as query;

from model.Pattern import ShuangFengGuanEr

sfge = None;

trade_data = query.daily("002333.SZ", start_date="20181008", days=30);

for data in reversed(trade_data):
  if data["pct_change"] >= 9.9 :
    pass
  if data["close"] >= round(data["pre_close"]*1.1, 2) :
    if sfge is None:
      sfge = ShuangFengGuanEr("002333.SZ")
  print(data)